import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/plugins/element.js'
import '@/assets/css/global.css'
import axios from 'axios'
import ElementUI from 'element-ui'
import baseUrl from '@/plugins/http.js'
import QuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(QuillEditor);




import aMap from 'vue-amap'   // 这个引入的最好放在引入的vue上面
Vue.use(aMap)
aMap.initAMapApiLoader({
  key: '1f886f61408e6cde62eb77f8f9797624',  // 你的key
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch','AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.Geolocation','AMap.Geocoder', 'AMap.AMapManager', 'AMap.Marker'],//应用功能项
  v: '1.4.4', //版本
  uiVersion: '1.0' //ui版本
})


Vue.prototype.$baseUrl = baseUrl

axios.defaults.headers.post['Content-Type']='application/json'
axios.defaults.headers.put['Content-Type']='application/json'

Vue.prototype.axios = axios ;
Vue.use(ElementUI);
Vue.config.productionTip = false

axios.defaults.headers.post['Content-Type'] = 'application/json'
axios.defaults.headers.put['Content-Type'] = 'application/json'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

